<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新增页面</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px;
            width: 80%; margin: auto}
        table, th, td {border: 0px solid darkslategray;padding: 10px}
        .btgn{
            font-family: "Microsoft YaHei UI";
            font-size: 16px;
            color: #255e95;
            background-color: #99CCFF;
            text-align: center;
        }
        .ccc{
            font-family: "Microsoft YaHei UI";
            font-size: 16px;
            color: #255e95;
            background-color: #ff7c76;
            text-align: center;
        }

        tr:nth-child(2n){
            background-color:#FFCC99;
        }
        tr:nth-child(2n+1) {
            background-color: #99CC99;
        }

        .c{
            width: 200px;
        }

    </style>
</head>
<body>
<div style="margin: 120px auto; width: 390px">
    <span class="span" style="color: darkslategray; font-size: 30px" >新增用户</span><br/>
    <form action="/AddUser" method="post" class="c">
        <!-- <form action="AddUser" method="get">-->
<!--        <tr><th class="btgn">id:</th>-->
<!--            &lt;!&ndash;/*@thymesVar id="id" type="spring.demo.bean.User"*/&ndash;&gt;-->
<!--            <input name="id" class="btgn" th:value="${id}"/><tr/><br/>-->
        <tr><th class="ccc">用户名:</th>
            <!--/*@thymesVar id="username" type="spring.demo.bean.User"*/-->
        <input name="username"class="ccc" th:value="${username}"/><tr/> <br/>
        <tr><th class="ccc">密码:</th>
            <!--/*@thymesVar id="password" type="spring.demo.bean.User"*/-->
        <input name="password"class="ccc" th:value="${password}"/><tr/> <br/>
        <tr><th class="ccc">姓名:</th>
            <!--/*@thymesVar id="tname" type="spring.demo.bean.User"*/-->
        <input name="tname"class="ccc" th:value="${tname}"/><tr/> <br/>
        <tr><th class="ccc">年龄:</th>
            <!--/*@thymesVar id="age" type="spring.demo.bean.User"*/-->
        <input name="age"class="ccc" th:value="${age}"/><tr/> <br/>

            <button type="submit">提交</button>
    </form>

</div>

</body>
</html>